package com.wkbb.common.enums;

public enum ImGroupTypeEnum {
    /**
     *0:手动建群
     */
    MANUALGROUP((short)0,"手动建群"),
    /**
     * 自动建群
     */
    AUTOGROUP((short)1,"自动建群"),
    /**
     * 教职工群
     */
    EMPLOYEEGROUP((short)2,"教职工群");

    private ImGroupTypeEnum(short value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private Short value;

    private String desc;

    public Short getValue() {
        return this.value;
    }

    public void setValue(Short value) {
        this.value = value;
    }

    public String getDesc() {
        return this.desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static String getDesc(Integer value) {
        for (ImGroupTypeEnum imGroupType : ImGroupTypeEnum.values()) {
            if (imGroupType.getValue().intValue() == value.intValue()) {
                return imGroupType.getDesc();
            }
        }
        return null;
    }
}
